package com.tedu.day06_mybatis.mapper;

import com.tedu.day06_mybatis.pojo.Weibo;
import com.tedu.day06_mybatis.pojo.WeiboVO1;
import com.tedu.day06_mybatis.pojo.WeiboVO2;
import com.tedu.day06_mybatis.pojo.WeiboVO3;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IWeiboMapper {

    public int insertWeibo(Weibo weibo);

    public int deleteById(Integer id);

    public int updateById(Weibo weibo);

    public WeiboVO1 selectWeibo(Integer id);

    public List<Weibo> findAll();

    public int dynamicUpdate(Weibo weibo);

    public int deleteByIds(int[] ids);

    public int deleteByIds2(List<Integer> ids);

   public int countWeibo();

   public WeiboVO2 selectResultMap(Integer id);

   public WeiboVO3 selectWeiboAndCommentById(Integer id);


}
